package com.cari.oa.service;
import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cari.oa.dao.BaseDao;
import com.cari.oa.dao.ReqUserRefDao;
import com.cari.oa.domain.ReqUserRefEntity;

@Service
@Transactional(rollbackFor = Exception.class)
public class ReqUserRefService extends BaseService<ReqUserRefEntity> {
	
	@Resource
	private ReqUserRefDao reqUserRefDao;

	@Override
	public BaseDao<ReqUserRefEntity> getDao() {
		return reqUserRefDao;
	}
	
	public ReqUserRefEntity getByEnname(String enname)
	{
		return reqUserRefDao.getByEnname(enname);
	}

	public ReqUserRefEntity getByReqType(String reqType) {
		return reqUserRefDao.getByReqType(reqType);
	}
	
}
